package com.mspbots;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * com.mspbots.SecurityApplication
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/6/24
 */
@SpringBootApplication
@EnableDiscoveryClient
public class WebApplication {


    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
    }

    /**
     * set default time zone is UTC
     */
    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
    }

}
